import layoutHeaderAside from '@/layout/header-aside'

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/libs/util.import.' + process.env.NODE_ENV)

const meta = {
  auth: true
}

export default {
  path: '/student',
  name: 'student',
  meta,
  redirect: {
    name: 'student_index'
  },
  component: layoutHeaderAside,
  children: [
    {
      path: '/student_index',
      name: 'student_index',
      component: _import('educational'),
      meta: {
        ...meta,
        title: '学生首页'
      }
    },
   
    {
      path: '/allresults',
      name: 'allresults',
      component: _import('educational/allresults'),
      meta: {
        ...meta,
        title: '学生所有成绩'
      }
    },
    {
      path: '/results',
      name: 'results',
      component: _import('educational/results'),
      meta: {
        ...meta,
        title: '学生学期成绩查询'
      }
    },
    {
      path: '/kebiao',

      name: 'kebiao',
      component: _import('educational/kebiao'),
      meta: {
        ...meta,
        title: '学生课表'
      }
    },
    {

      path: '/CET4',
      name: 'CET4',
      component: _import('educational/CET4'),
      meta: {
        ...meta,
        title: '学生校外考试'
      }
    },
    {
      path: '/userinfo',
      name: 'userinfo',
      component: _import('educational/userinfo'),
      meta: {
        ...meta,
        title: '学生个人信息查询'
      }


    }
  ]


}
